var casper = require('casper').create();

casper.on('resource.received', function(resource) {
    casper.echo(resource.url);
});